package com.xz.log.common.logging.sample;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * Created by fingal on 2018/7/12.
 */
public class CommonLoggingSample {
    private static final Log log = LogFactory.getLog(CommonLoggingSample.class);

    private static final CommonLoggingSample INSTANCE = new CommonLoggingSample();

    private CommonLoggingSample() {}

    public static CommonLoggingSample getInstance() {
        return INSTANCE;
    }

    public void log() {
        log.trace("this is trace log...jcl");

        log.debug("this is debug log...jcl");

        log.info("this is info log...jcl");

        log.warn("this is warn log...jcl");

        log.error("this is error log...jcl");

        log.fatal("this is fatal log...jcl");
    }
}
